﻿using Learun.Util;
using System.Collections.Generic;

namespace Learun.Application.TwoDevelopment.ZZDT_EC
{
    public interface ec_Wire_GroupIBLL
    {
        #region 获取数据
        /// <summary>
        /// 信号（包括其softTag）
        /// </summary>
        /// <param name="queryJson"></param>
        /// <returns></returns>
        List<ec_Wire_GroupEntity> GetList(string queryJson, bool Assigned = true, bool tree = false, bool IncludeDelete = true, Pagination pagination = null, bool onlySelf = false);
        /// <summary>
        /// 获取左侧树形数据
        /// <summary>
        /// <param name="ProjectId">项目ID</param>
        /// <returns></returns>
        List<TreeModel> GetTree(string ProjectId);
        /// <summary>
        /// 获取实体数据
        /// <param name="keyValue">主键</param>
        /// <summary>
        /// <returns></returns>
        ec_Wire_GroupEntity GetEntity(string keyValue, string ProjectId);
        #endregion
        #region 提交数据
        /// <summary>
        /// 删除实体数据
        /// <param name="keyValue">主键</param>
        /// <summary>
        /// <returns></returns>
        string DeleteEntity(string ProjectId, string ID, bool OnlyMessage);
        /// <summary>
        /// 保存实体数据（新增、修改）
        /// <param name="keyValue">主键</param>
        /// <summary>
        /// <returns></returns>
        string SaveEntity(string ProjectId, ref string ID, ec_Wire_GroupEntity entity, string mode = "0");
        #endregion
    }
}
